using Microsoft.EntityFrameworkCore;
using MvcDemo09.Models;

namespace MvcDemo09.Db
{
    public class MvcDb:DbContext
    {
        protected override void OnConfiguring(DbContextOptionsBuilder builder)
        {
            builder.UseSqlServer(@"server=.;database=MvcDemo09;uid=sa;pwd=123456");
        }

        public DbSet<Student> Student{get;set;}
        public DbSet<School> School{get;set;}
    }
}